package com.ruoyi.mes.domain;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.utils.DateUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品设计对象 pro_design
 * 
 * @author CFL
 * @date 2024-04-28
 */
public class ProDesign extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品id */
    private Long id;

    /** 产品编码 */
    @Excel(name = "产品编码")
    private String proSn;

    /** 产品bom_id */
    private Long proBomId;

    /** 单位id */
    private Long unitId;

    /** 单位名称 */
    private String unitName;

    /** 工艺id */
    private String cftId;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String proName;

    /** 产品来源 */
    @Excel(name = "产品来源")
    private Integer proSource;

    /** 产品类型 */
    @Excel(name = "产品类型")
    private Integer proType;

    /** 产品状态 */
    @Excel(name = "产品状态")
    private Integer proState;


    /** 默认入库价格 */
    @Excel(name = "默认入库价格")
    private Long dsPrice;

    /** 默认销售价格 */
    @Excel(name = "默认销售价格")
    private Long dslePrice;

    /** 逻辑删除;0：存在；1：删除 */
    private Integer isDeleted;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新者 */
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProSn(String proSn) 
    {
        this.proSn = proSn;
    }

    public String getProSn() 
    {
        return proSn;
    }
    public void setProBomId(Long proBomId) 
    {
        this.proBomId = proBomId;
    }

    public Long getProBomId() 
    {
        return proBomId;
    }
    public void setUnitId(Long unitId) 
    {
        this.unitId = unitId;
    }

    public Long getUnitId() 
    {
        return unitId;
    }

    public void setUnitName(String unitName)
    {
        this.unitName = unitName;
    }

    public String getUnitName()
    {
        return unitName;
    }
    public void setCftId(String cftId)
    {
        this.cftId = cftId;
    }

    public String getCftId()
    {
        return cftId;
    }
    public void setProName(String proName) 
    {
        this.proName = proName;
    }

    public String getProName() 
    {
        return proName;
    }
    public void setProSource(Integer proSource) 
    {
        this.proSource = proSource;
    }

    public Integer getProSource()
    {
        return proSource;
    }
    public void setProType(Integer proType)
    {
        this.proType = proType;
    }

    public Integer getProType()
    {
        return proType;
    }
    public void setProState(Integer proState) 
    {
        this.proState = proState;
    }

    public Integer getProState() 
    {
        return proState;
    }

    public void setDsPrice(Long dsPrice) 
    {
        this.dsPrice = dsPrice;
    }

    public Long getDsPrice() 
    {
        return dsPrice;
    }
    public void setDslePrice(Long dslePrice) 
    {
        this.dslePrice = dslePrice;
    }

    public Long getDslePrice() 
    {
        return dslePrice;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedDate(Date updatedDate) 
    {
        this.updatedDate = updatedDate;
    }

    public Date getUpdatedDate() 
    {
        return updatedDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("proSn", getProSn())
            .append("proBomId", getProBomId())
            .append("unitId", getUnitId())
            .append("cftId", getCftId())
            .append("proName", getProName())
            .append("proSource", getProSource())
            .append("proType", getProType())
            .append("proState", getProState())
            .append("dsPrice", getDsPrice())
            .append("dslePrice", getDslePrice())
            .append("isDeleted", getIsDeleted())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedDate", getUpdatedDate())
            .append("remark", getRemark())
            .toString();
    }
}
